package com.itheima.lambda3;

public class TestParam {
    public static void main(String[] args) {
        useInterface(new Inter() {
            @Override
            public String getSting(int a, int b) {
                return a+"--"+b;
            }
        },55,66);


        useInterface((a,b)->{
            return a+""+b;
        },33,22);
    }

    public static String useInterface(Inter inter,int a, int b){
        String sting = inter.getSting(a, b);
        System.out.println(sting);
        return sting;

    }


}

interface Inter{
    abstract String getSting(int a , int b);
}
